package a1.knight.quest;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;

public class KnightQuestTest {
	public static void main(String[] args) {
		BeanFactory factory = new XmlBeanFactory(
				new FileSystemResource(
						"C:/Users/Bobby/workspace/MySpringProject/WebContent/xml/a1.knight.xml"));
		Knight knight = (Knight) factory.getBean("knight");
		knight.embarkOnQuest();
	}
}
